import request from '@/utils/request'

// 查询仰口生产报列表
export function listAnalysisProduct(query) {
  return request({
    url: '/productionProcess/analysisProduct/list',
    method: 'get',
    params: query
  })
}

// 查询计算结果
export function listAnalysisProductCompute(query) {
  return request({
    url: '/productionProcess/analysisProduct/compute',
    method: 'get',
    params: query
  })
}

// 查询仰口生产报详细
export function getAnalysisProduct(id) {
  return request({
    url: '/productionProcess/analysisProduct/' + id,
    method: 'get'
  })
}

// 新增仰口生产报
export function addAnalysisProduct(data) {
  return request({
    url: '/productionProcess/analysisProduct',
    method: 'post',
    data: data
  })
}

// 修改仰口生产报
export function updateAnalysisProduct(data) {
  return request({
    url: '/productionProcess/analysisProduct',
    method: 'put',
    data: data
  })
}

// 删除仰口生产报
export function delAnalysisProduct(id) {
  return request({
    url: '/productionProcess/analysisProduct/' + id,
    method: 'delete'
  })
}
